package com.weilus.refresh;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.net.URI;

/**
 * @program springCloud-k8s
 * @date 2019-06-26 17:08
 **/
@Configuration
@RefreshScope
@Data
public class ConsumerConfigMap {

    @Value("${test.name:马云}")
    private String name;

    @Value("${clients.say-hello:}")
    private URI sayHello;

    @Value("${clients.hi-man:}")
    private URI hiMan;

    @Value("${clients.check-token:}")
    private URI checkToken;

    @Value("${clients.login-log:}")
    private URI loginLog;

    @Value("${clients.every-day-money:}")
    private URI everyDayMoney;

}
